
    <?=form_open('news/updatecat/'.$this->uri->segment(3));?>
    <table class="form">
        <tr>
            <td class="label w150">Tên chuyên mục</td>
            <td><input type="text" name="CatName" id="title" class="w300" value="<?=$rs->CatName?>"></td>
        </tr>
        <tr>
            <td class="label">Chuyên mục</td>
            <td>
                <select name="ParentID">
                    <option value="0">Là chuyên mục chính</option>
                    <?foreach($listcat as $val):?>
                    <option value="<?=$val->CatID?>" <?=($val->CatID == $rs->ParentID)?'selected="selected"':'';?>><?=$val->CatName?></option>
                    <?endforeach;?>
                </select>
            </td>
        </tr>
        <tr>
            <td class="label">Hiển thị</td>
            <td><input type="checkbox" name="IsActive" value="1" <?=($rs->IsActive==1)?'checked="checked"':'';?>></td>
        </tr> 
        <tr>
            <td colspan="2" class="footer"><input type="submit" name="bt_submit" class="capnhat"></td>
        </tr>               
    </table>
    <?=form_close();?>
